<?php

	require('includes/connect.php');

	$fname = $_POST['fname'];

	$lname = $_POST['lname'];

	$user_id = $_POST['user_id'];

	$chngNM = mysql_query("update users set `fname`= '$fname', `lname` = '$lname' where user_id = " . $user_id);

	header('location: settings.php');

?>